Repository navigation
Conversation
PR risk: mediumFor commit Main concerns: public contract, data sent to Sentry, host performance. Rules that block low also fired:
This label is a hint for reviewers, not an approval. |
|
📲 Install BuildsAndroid
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit ed8917b. Configure here.
| writeMarker = | ||
| () -> { | ||
| NonFatalAnrMarker.write(options, pid, startTimestampMs, endTimestampMs); | ||
| markerWritten.set(true); |
There was a problem hiding this comment.
Marker can outlive a later hang
Medium Severity
The skip marker is written only after async envelope flush, and a later hang deletes it only if markerWritten is already true. A new hang can start in the window after capture and before flush, so the previous hang’s marker is written afterward and can still match. AnrV2Integration would then treat a later fatal ANR as already reported.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit ed8917b. Configure here.
| public void markFlushed() { | ||
| if (onStoredOnDisk != null && flushed.compareAndSet(false, true)) { | ||
| onStoredOnDisk.run(); | ||
| } |
There was a problem hiding this comment.
Rate limit still writes skip marker
Medium Severity
markFlushed also runs when the rate limiter drops the envelope, and that path still writes last_non_fatal_anr. The hang was never stored, so a later fatal ANR for the same hang can be skipped and never reported.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit ed8917b. Configure here.


Adds
NonFatalAnrIntegration(API 30+) and the optionsnonFatalAnrSampleRateandnonFatalAnrThresholdMs(also as manifest metadata).nonFatalAnrSampleRateis drawn at each hang. Writes thelast_non_fatal_anrmarker for hangs that can also be a fatal ANR.Design: Non-Fatal ANR Architecture (JAVA-777)
🤖 Generated with Claude Code
#skip-changelog